package com.peanut.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.peanut.model.Role;
import com.peanut.persistence.RoleMapper;

/**
 * 资源管理类
 * @author Johan.Chenjh
 *
 * 2011-3-14
 */
@Service
public class RoleService {
	private RoleMapper roleMapper;

	@Autowired
	public void setResourceManager(RoleMapper roleMapper) {
		this.roleMapper = roleMapper;
	}
	
	public List<Role> queryAll() {
		return roleMapper.queryAll();
	}
	
}
